RAIS  3.2
RAIS::UI::SpecificMasks::LoginPage Class Reference

This class implements UI logic of the user login page. More...

List of all members.

Protected Member Functions

void Page_PreLoad (object sender, EventArgs e)
void Page_Load (object sender, EventArgs e)
 Event handler of the page load event.
void BTNaccount_Click (object sender, EventArgs e)
 Event handler of the event of account applicaiton button click.
void BTNlogin_Click (object sender, EventArgs e)
 Event handler of the event of login button click.
void DDLlanguage_SelectedIndexChanged (object sender, EventArgs e)
 Event handler of the language selection event of account applicaiton button click.
void CBchangepassword_CheckedChanged (object sender, EventArgs e)

Protected Attributes

global::System.Web.UI.HtmlControls.HtmlHead Head1
 Head1 control.
global::System.Web.UI.HtmlControls.HtmlForm form1
 form1 control.
global::System.Web.UI.WebControls.Label LBLlanguage
 LBLlanguage control.
global::System.Web.UI.WebControls.DropDownList DDLlanguage
 DDLlanguage control.
global::System.Web.UI.WebControls.Label LBLusername
 LBLusername control.
global::System.Web.UI.WebControls.TextBox TXTusername
 TXTusername control.
global::System.Web.UI.WebControls.Label LBLpassword
 LBLpassword control.
global::System.Web.UI.WebControls.TextBox TXTpassword
 TXTpassword control.
global::System.Web.UI.WebControls.Button BTNlogin
 BTNlogin control.
global::System.Web.UI.WebControls.CheckBox CBchangepassword
 CBchangepassword control.
global::System.Web.UI.WebControls.Label LBLerror
 LBLerror control.
global::System.Web.UI.WebControls.Label LBLgeneral
 LBLgeneral control.
global::System.Web.UI.WebControls.Button BTNaccount
 BTNaccount control.

Properties

UserData CurrentUser [get]
 Gets the CurrentUser from session data.

Detailed Description

This class implements UI logic of the user login page.

Definition at line 14 of file LoginPage.aspx.designer.cs.


Member Function Documentation

void RAIS::UI::SpecificMasks::LoginPage::BTNaccount_Click ( object  sender,
EventArgs  e 
) [protected]

Event handler of the event of account applicaiton button click.

This button's click simply redirects the user with a server.transfer to the account application page

Parameters:
senderEvent sender object.
eEvent arguments collection.

Definition at line 112 of file LoginPage.aspx.cs.

void RAIS::UI::SpecificMasks::LoginPage::BTNlogin_Click ( object  sender,
EventArgs  e 
) [protected]

Event handler of the event of login button click.

Note:
A check must be performed to ensure the data that has been entered conforms to validation rules (eg, password is missing or username is missing) If validation is successful then it will proceed to the next step, If it fails then an error must be displayed in LBLerror, and the user must try again. This will take the value within TXTpassword and TXTusername and compare them with the database for a match. If the authentication is successful then the user will be redirected to the main page. If authentication is not successful then an error msg will be displayed in LBLerror
Parameters:
senderEvent sender object.
eEvent arguments collection.

Definition at line 133 of file LoginPage.aspx.cs.

void RAIS::UI::SpecificMasks::LoginPage::CBchangepassword_CheckedChanged ( object  sender,
EventArgs  e 
) [protected]

Definition at line 367 of file LoginPage.aspx.cs.

void RAIS::UI::SpecificMasks::LoginPage::DDLlanguage_SelectedIndexChanged ( object  sender,
EventArgs  e 
) [protected]

Event handler of the language selection event of account applicaiton button click.

Note:
If a different language is selected then this value must be stored within the database, Once this value is stored, a look up with the new language selection must be done on the translation table. once the translations have been found they must replace the current label and button texts for all labels on all pages.
Parameters:
senderEvent sender object.
eEvent arguments collection.

Definition at line 198 of file LoginPage.aspx.cs.

void RAIS::UI::SpecificMasks::LoginPage::Page_Load ( object  sender,
EventArgs  e 
) [protected]

Event handler of the page load event.

If user is already logged in, direct them to the site logged in page if user isnt logged in then display the login page. DDLlanguage must be populated from a list of possible language selections from the database

Parameters:
senderEvent sender object.
eEvent arguments collection.

Definition at line 79 of file LoginPage.aspx.cs.

void RAIS::UI::SpecificMasks::LoginPage::Page_PreLoad ( object  sender,
EventArgs  e 
) [protected]

Definition at line 64 of file LoginPage.aspx.cs.


Member Data Documentation

global::System.Web.UI.WebControls.Button RAIS::UI::SpecificMasks::LoginPage::BTNaccount [protected]

BTNaccount control.

Auto-generated field. To modify move field declaration from designer file to code-behind file.

Definition at line 131 of file LoginPage.aspx.designer.cs.

global::System.Web.UI.WebControls.Button RAIS::UI::SpecificMasks::LoginPage::BTNlogin [protected]

BTNlogin control.

Auto-generated field. To modify move field declaration from designer file to code-behind file.

Definition at line 95 of file LoginPage.aspx.designer.cs.

global::System.Web.UI.WebControls.CheckBox RAIS::UI::SpecificMasks::LoginPage::CBchangepassword [protected]

CBchangepassword control.

Auto-generated field. To modify move field declaration from designer file to code-behind file.

Definition at line 104 of file LoginPage.aspx.designer.cs.

global::System.Web.UI.WebControls.DropDownList RAIS::UI::SpecificMasks::LoginPage::DDLlanguage [protected]

DDLlanguage control.

Auto-generated field. To modify move field declaration from designer file to code-behind file.

Definition at line 50 of file LoginPage.aspx.designer.cs.

global::System.Web.UI.HtmlControls.HtmlForm RAIS::UI::SpecificMasks::LoginPage::form1 [protected]

form1 control.

Auto-generated field. To modify move field declaration from designer file to code-behind file.

Definition at line 32 of file LoginPage.aspx.designer.cs.

global::System.Web.UI.HtmlControls.HtmlHead RAIS::UI::SpecificMasks::LoginPage::Head1 [protected]

Head1 control.

Auto-generated field. To modify move field declaration from designer file to code-behind file.

Definition at line 23 of file LoginPage.aspx.designer.cs.

global::System.Web.UI.WebControls.Label RAIS::UI::SpecificMasks::LoginPage::LBLerror [protected]

LBLerror control.

Auto-generated field. To modify move field declaration from designer file to code-behind file.

Definition at line 113 of file LoginPage.aspx.designer.cs.

global::System.Web.UI.WebControls.Label RAIS::UI::SpecificMasks::LoginPage::LBLgeneral [protected]

LBLgeneral control.

Auto-generated field. To modify move field declaration from designer file to code-behind file.

Definition at line 122 of file LoginPage.aspx.designer.cs.

global::System.Web.UI.WebControls.Label RAIS::UI::SpecificMasks::LoginPage::LBLlanguage [protected]

LBLlanguage control.

Auto-generated field. To modify move field declaration from designer file to code-behind file.

Definition at line 41 of file LoginPage.aspx.designer.cs.

global::System.Web.UI.WebControls.Label RAIS::UI::SpecificMasks::LoginPage::LBLpassword [protected]

LBLpassword control.

Auto-generated field. To modify move field declaration from designer file to code-behind file.

Definition at line 77 of file LoginPage.aspx.designer.cs.

global::System.Web.UI.WebControls.Label RAIS::UI::SpecificMasks::LoginPage::LBLusername [protected]

LBLusername control.

Auto-generated field. To modify move field declaration from designer file to code-behind file.

Definition at line 59 of file LoginPage.aspx.designer.cs.

global::System.Web.UI.WebControls.TextBox RAIS::UI::SpecificMasks::LoginPage::TXTpassword [protected]

TXTpassword control.

Auto-generated field. To modify move field declaration from designer file to code-behind file.

Definition at line 86 of file LoginPage.aspx.designer.cs.

global::System.Web.UI.WebControls.TextBox RAIS::UI::SpecificMasks::LoginPage::TXTusername [protected]

TXTusername control.

Auto-generated field. To modify move field declaration from designer file to code-behind file.

Definition at line 68 of file LoginPage.aspx.designer.cs.


Property Documentation

UserData RAIS::UI::SpecificMasks::LoginPage::CurrentUser [get, protected]

Gets the CurrentUser from session data.

Definition at line 59 of file LoginPage.aspx.cs.


The documentation for this class was generated from the following files: